libmyMath.so:my_add.o my_sub.o
	g++ -shared -o $@ $^ 
my_add.o:my_add.cc
	g++ -fPIC -c my_add.cc 
my_sub.o:my_sub.cc
	g++ -fPIC -c my_sub.cc 

.PHONY:output
output:
	mkdir -p mylib/include 
	mkdir -p mylib/lib
	cp -f *.so mylib/lib
	cp -f *.h mylib/include
.PHONY:clean
clean:
	rm -f my_add.o my_add.o libmyMath.so
